package org.kfive.nova.design.structture.adapter;

/**
 * Created by admin on 2017-03-04.
 * 对象适配器
 */
public class ObjectAdapater implements Target {

    private Adapatee adapatee;

    public ObjectAdapater(Adapatee adapatee) {
        this.adapatee = adapatee;
    }

    public void operatorA() {
        System.out.println("operatorA");
        this.adapatee.operatorB();
    }
}
